home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1314 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.kth.se!news
  2. From: Per Wiberg <e95_pwi@elixir.e.kth.se>
  3. Newsgroups: comp.lang.c++
  4. Subject: how to edit, compile and debug in BC++ 4.5(for all you who can't)
  5. Date: Wed, 10 Jan 1996 13:12:13 +0100
  6. Message-ID: <30F3AD1D.2781@elixir.e.kth.se>
  7. NNTP-Posting-Host: lumen.e.kth.se
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7bit
  11. X-Mailer: Mozilla 2.0b2 (X11; I; OSF1 V2.0 alpha)
  12. CC: dilcher@cueva.com
  13.  
  14. Ok, how to edit:
  15.  
  16. the simplest way is to edit with .... EDIT!. The only disadvantage is
  17. that your code will not be indented.But otherwise it's Ok.
  18. Just save your code as file.c.
  19.  
  20. how to compile:
  21.  
  22. bbc -Ic:\bc45\include someth.c
  23.  
  24. I assume that your include library (where those headerfiles, stdio.h
  25. are) is c:\bc45\include otherwise just change the path. -I means "where
  26. are the headers?". someth.c is the file you're going to compile. Bcc
  27. will generate a file called "someth.exe". NOTE, Bcc WILL OVERWRITE
  28. existing files which have the same name!!!!! WITHOUT ANY WARNING!!.
  29.  
  30. If you are going to debug the program just add -v . this means that bbc
  31. will save the symbol table in a file called *.tbl (I think..)
  32.  
  33. bcc -v -Ic:\bc45\include someth.c
  34.  
  35. then run:
  36. td someth.exe
  37.  
  38. to debug ,add breakpoints(where you want to pause) step through your
  39. program with F9 and watch variables with add watch Ctr-F7.
  40.  
  41. that's all to it!
  42. Per Wiberg
  43.